#ifndef LOVE_MOD_SDLTIMER_H
#define LOVE_MOD_SDLTIMER_H
#include "lua.h"
//open sound device
void timer_open();
/**
	* Updates the timer one step. Should only
	* be called once per frame.
	**/
	void step();

	/**
	* Gets the current delta (does not update). 
	* Can be called multiple times per frame.
	**/
	float getDelta();
	
	/**
	* Gets the average FPS for the previous second.
	**/
	float getFPS();

	/**
	* Causes execution to sleep for a certain
	* amout of milliseconds.
	**/
	void sleep(int ms);

	/**
	* Returns the time since the initialization of the
	* module. 
	* @return The time in seconds.
	**/
	float getTime();
	
	int l_getFPS(lua_State *L);

	int l_getDelta(lua_State *L);	
#endif // LOVE_MOD_SDLTIMER_H
	
